package com.zp.base.entity.labMaintenance.bo;

import com.zp.common.core.entity.TreeEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * 检验项目类型lab_type业务对象
 *
 * @author zhang peng
 * @ date 2023-05-29
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class LabTypeBo extends TreeEntity<LabTypeBo> {

    /**
     * 主键
     */
    private String labTypeId;

    /**
     * 类型名称
     */
    @NotBlank(message = "类型名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 机构ID
     */
    @NotBlank(message = "机构ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private String orgId;

    /**
     * 级别
     */
    @NotNull(message = "级别不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer level;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer sort;

    /**
     * 执行科室
     */
    private String performedBy;

    /**
     * 所有父级编号
     */
    private String parentIds;

    /**
     * 备注信息
     */
    private String remarks;


}
